package com.leaf.u_spring.chapter05;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import static org.springframework.web.bind.annotation.RequestMethod.*;

@Controller			//声明一个控制器
public class HomeController {

	@RequestMapping(value="/", method=GET)		//处理对"/"的GET请求
	public String home(){
		return "home";			//视图名"home"
	}
}
